<?php
/**
 * Created by PhpStorm.
 * User: mayn
 * Date: 2018/8/22
 * Time: 15:53
 */

namespace app\api\controllers;


use app\api\core\BaseController;
use app\api\interfaces\MaterialInterface;
use app\api\models\AnalysisModel;
use app\api\models\MaterialModel;


class MaterialController extends BaseController implements MaterialInterface
{
    public function actionTemp_list()
    {
        return (new MaterialModel())->actionTempList();
    }

    public function actionTemp_group_list()
    {
        return (new MaterialModel())->actionTempGroupList();
    }

    public function actionTemp_add()
    {
        return (new MaterialModel())->actionTempAdd();
    }

    public function actionArticle_add()
    {
        return (new MaterialModel())->actionArticleAdd();
    }

    public function actionArticle_upd()
    {
        return (new MaterialModel())->actionArticleUpd();
    }

    public function actionTemp_list_num()
    {
        return (new MaterialModel())->actionTempListNum();
    }
    public function actionTemp_del()
    {
        return (new MaterialModel())->actionTempDel();
    }
    public function actionTemp_batch_del()
    {
        return (new MaterialModel())->actionTempBatchDel();
    }

    public function actionTemp_img_add()
    {
        return (new MaterialModel())->actionTempImgAdd();
    }

    public function actionSync_material()
    {
        return (new AnalysisModel())->actionSyncMaterial();
    }

    public function actionGrouping_add()
    {
        return (new MaterialModel())->actionGroupingAdd();
    }

    public function actionGrouping_del()
    {
        return (new MaterialModel())->actionGroupingDel();
    }

    public function actionGrouping_list()
    {
        return (new MaterialModel())->actionGroupingList();
    }

    public function actionGrouping_upd()
    {
        return (new MaterialModel())->actionGroupingUpd();
    }
    public function actionImg_move_group()
    {
        return (new MaterialModel())->actionImgMoveGroup();
    }

    public function actionTemp_article_list()
    {
        return (new MaterialModel())->actionTempArticleList();
    }
}